package demo2;

public class Test {
    public static void main(String[] args) {
        Cat cat = new CatBoss();
        cat.eat();
    }






    public static  void Irun(IRunning iRunning){
        iRunning.run();
    }
    public static void main1(String[] args) {
        IRunning iRunning = new Animal("wangcai",10);
        Irun(iRunning);

    }
}
